import http from '@/utils/httpRequest'
import store from '@/store'
export function fetchCategory(){
    return http.request({
        url:'/category'
    })
}
export function fetchSlides(){
    return http.request({
        url:'/slides'
    })
}
export function fetchList(size,offset){// offset表示开始取的数据的索引
    return http.request({
        url:`/lessonList/${store.state.home.currentLession}/?size=${size}&offset=${offset}`
    })
}
